package com.example.spring.service;
import com.example.spring.entity.User;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.spring.dao.*;
@Service
public class studentservice {
@Autowired
private userdao user;
public List<User> searchAll(){
return this.user.searchAll();}
public int deleteUser(String id)
{return this.user.deleteUser(id);}
public int updateUser(User user)
{return this.user.updateUser(user);}
public int insertUser(User user)
{return this.user.inserUser(user);}
public User getUser(String id)
{return this.user.getUser(id);}
}
